/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package protocol;

/**
 *
 * @author taillefe
 */

import java.net.InetAddress;


public class Hello extends Message {

    private static final long serialVersionUID = 123L;

    private boolean repreq;

    public Hello (boolean repreq, String username, InetAddress address){
	super(username, address);
	this.repreq = repreq;
    }

    /**
     * @return the repreq
     */
    public boolean isRepreq() {
        return repreq;
    }


    public String toString(){
	return (super.toString() + " Type: HELLO; Reponse Requis: "+repreq);
    }


}

